#pragma once
#include "BasicFunction.h"

// CMorphological dialog

class CMorphological : public CDialog
{
	DECLARE_DYNAMIC(CMorphological)
private:
	using CDialog::Create;
public:
	CMorphological(CWnd* pParent);   // standard constructor
	BOOL Create();
	virtual ~CMorphological();

// Dialog Data
	enum { IDD = IDD_DIALOG_MOR };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void PostNcDestroy();
	virtual void OnOK();

	DECLARE_MESSAGE_MAP()
protected:
	CWnd*	m_parent;
	int		m_nID;

public:
	afx_msg void OnBnClickedButtonErode();
	afx_msg void OnBnClickedButtonDilate();
	afx_msg void OnBnClickedButtonInvert();
	afx_msg void OnBnClickedButtonBinary();
	void DialogDestroy();
	afx_msg void OnBnClickedButtonCombine();
	afx_msg void OnBnClickedButtonClosing();
	afx_msg void OnBnClickedButtonOpening();
	afx_msg void OnBnClickedButtonPlotedge();
};
